package cn.duwey.scs.service.vehicle.service;

import cn.duwey.scs.api.vehicle.VehicleApi;
import cn.duwey.scs.api.vehicle.dto.VehicleDTO;
import cn.duwey.scs.common.dto.ServiceResult;
import cn.duwey.scs.common.support.RpcSupport;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class VehicleService implements VehicleApi {

    @Override
    @RequestMapping("/findById")
    public ServiceResult<VehicleDTO> findById(@RequestParam("id") Long id) {
        VehicleDTO vehicleDTO = null;

        return RpcSupport.wrapSuccess(vehicleDTO);
    }

    @Override
    @RequestMapping("/findByVin")
    public ServiceResult<VehicleDTO> findByVin(String vin) {
        return null;
    }
}
